/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


$(function(){
    $("#txtdatestart").val(current_date);
    $("#txtdateend").val(current_date);
    $( "#txtdatestart" ).datepicker({
            changeMonth: true,
            numberOfMonths: 2,
            dateFormat:'yy-mm-dd',
            onClose: function( selectedDate ) {
                $( "#txtdateend" ).datepicker( "option", "minDate", selectedDate );
            }
        });
        $( "#txtdateend" ).datepicker({
            changeMonth: true,
            numberOfMonths: 2,
            dateFormat:'yy-mm-dd',
            onClose: function( selectedDate ) {
                $( "#txtdatestart" ).datepicker( "option", "maxDate", selectedDate );
            }
        });
});

function changlstCustomer(){
    
    
    if(frmcondition.chksummary.checked == true){
        //alert("VVVVVVVV");
        document.getElementById('customerList1').style.display='none';
        document.getElementById('customerList2').style.display='none';
    }
    
    if(frmcondition.chksummary.checked == false){
        //alert("VVVVVVVV");
        document.getElementById('customerList1').style.display='block';
        document.getElementById('customerList2').style.display='block';
    }
    
    //frmcondition.chksummary.checked == true
}

function hiddenSelectType(){
    if(frmcondition.chksummary.checked == true){
        //alert("VVVVVVVV");
        document.getElementById('divSelectType').style.display='none';
    }
    
    if(frmcondition.chksummary.checked == false){
        //alert("VVVVVVVV");
        document.getElementById('divSelectType').style.display='block';
    }
}